package com.mspbots.core.tsheets;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * com.mspbots.sync.scheduled.tsheets.model.SheetsTime
 *
 * @author Alex bob(https://github.com/vnobo)
 * @date Created by 2019/7/25
 */

@Data
@TableName(value = "tsheet_times", autoResultMap = true)
public class SheetsTime extends SheetsEntity {

    private Long sheetId;
    private Long sheetUserId;
    private Long createdByUserId;

    private LocalDateTime startTime;
    private LocalDateTime endTime;
    private LocalDate oneDay;
    /**
     * The total number of seconds recorded for this timesheet.
     */
    private Long duration;
    private LocalDateTime lastModified;
    private String notes;

    private LocalDateTime syncTime;
    private LocalDateTime lastModifiedStart;

    /**
     * TSheet users by table id;
     */
    private transient Long tsUid;
    private transient String sheetUserName;

    private transient LocalDateTime startTimeFrom;
    private transient LocalDateTime startTimeTo;

}
